<!--
 * @Author: CheungChi
 * @Date: 2025-05-13 09:39:14
 * @LastEditors: CheungChi 758515373@qq.com
 * @LastEditTime: 2025-06-10 10:12:37
 * @FilePath: /未命名文件夹/index.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script id="AI-shuziren" src="./srz.umd_new.cjs"></script>
</head>
<style>
    #AI-shuziren-container {
        width: 300px;
        height: 700px;
        background: #999;
    }
</style>

<body>
    <div id="AI-shuziren-container"></div>
    <input class="input" type="file" accept="audio/*">
    <script>
        szr = SZR.create({
            width: "100%",
            height: "100%",
            containner: '#AI-shuziren-container',
            pcMemberId: 10568,
            pcUserId: "97225",
            pcMobile: "17838185566",
            pcCode: new Date().getTime(),
            deviceId: new Date().getTime(),
            baseUrl: 'https://yufabu.saizhuge.net',
            socketUrl: 'wss://eval.saizhuge.net',
        })
        document.querySelector('.input').addEventListener('change', function (e) {
            const file = e.target.files[0];
            console.log(file);

            setTimeout(() => {
                szr.postMessage({
                    type: 'H5_SZR_STOP_VOICE',
                    detail: {
                        code: 1
                    }
                })
            }, 8000);
        })

        onclick = function () {
            szr.postMessage({
                type: 'H5_SZR_INSTRUCT',
                detail: {
                    code: 3,
                    value: '123'
                }
            })
        }
    </script>
</body>

</html>